<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../swEjecutarAccion.wsdl"/>
      <rootElement name="EJECUTARACCIONMC" namespace="http://mincetur.gob.pe/SIC/expediente/ejecutarAccionMC"/>
    </source>
    <source type="WSDL">
      <schema location="../swEjecutarAccion.wsdl"/>
      <rootElement name="GUARDARDOCUMENTOSMR" namespace="http://mincetur.gob.pe/SIC/expediente/ejecutarAccionMC"/>
      <param name="GuardarDocumentosRelacionados_OutputVariable.payload" />
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="http://srvmcturucm:8011/S_Compartidos/Proxy/swInstanciaLegalBPM_Proxy?WSDL"/>
      <rootElement name="catchDESESTIM" namespace="http://xmlns.oracle.com/bpmn/bpmnProcess/bpmEvaluacion"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [TUE MAY 14 15:02:31 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:ns1="http://mincetur.gob.pe/SIC/expediente/ejecutarAccionMC"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:ns3="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns2="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
                xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:tns6="http://mincetur.gob.pe/SIC/expediente/solicitudRM"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:ns0="http://mincetur.gob.pe/SIC/accion/accionSolicitudTipo"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:ns4="http://mincetur.gob.pe/SIC/documento/PlantillaTipo"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:tns="http://xmlns.oracle.com/bpmn/bpmnProcess/bpmEvaluacion"
                xmlns:client="http://mincetur.gob.pe/SIC/expediente/swEjecutarAccion"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl ns1 ns3 ns2 plnk wsdl ns0 client xsd SOAP-ENC soap tns6 ns4 tns xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:param name="GuardarDocumentosRelacionados_OutputVariable.payload"/>
  <xsl:template match="/">
    <tns:catchDESESTIM>
      <ns0:ACCIONSOLICITUD>
        <xsl:attribute name="COD_TIPOACCION">
          <xsl:value-of select="/ns1:EJECUTARACCIONMC/@COD_OPCION"/>
        </xsl:attribute>
        <xsl:attribute name="DES_MOTIVO">
          <xsl:value-of select="/ns1:EJECUTARACCIONMC/@DES_NOTAS"/>
        </xsl:attribute>
        <xsl:attribute name="NUM_DIASSOLI">
          <xsl:value-of select="/ns1:EJECUTARACCIONMC/@NUM_DIAS"/>
        </xsl:attribute>
        <xsl:attribute name="DES_FECHA">
          <xsl:value-of select="xp20:format-dateTime(xp20:current-dateTime(),'[D01]/[M01]/[Y0001]')"/>
        </xsl:attribute>
        <xsl:attribute name="DES_CORRELTI">
          <xsl:value-of select="/ns1:EJECUTARACCIONMC/@COD_EXPE"/>
        </xsl:attribute>
        <xsl:attribute name="ID_TAREADESDE">
          <xsl:value-of select="/ns1:EJECUTARACCIONMC/@ID_TAREADESDE"/>
        </xsl:attribute>
        <ns0:DOCUMENTOS>
          <xsl:for-each select="$GuardarDocumentosRelacionados_OutputVariable.payload/ns1:GUARDARDOCUMENTOSMR/ns1:DOCUMENTOS/ns1:DOCUMENTOADJUNTO">
            <ns0:DOCUMENTO>
              <xsl:if test="@ID_DOCU">
                <xsl:attribute name="ID_DOCU">
                  <xsl:value-of select="@ID_DOCU"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@COD_EXTEDOCU">
                <xsl:attribute name="COD_EXTEDOCU">
                  <xsl:value-of select="@COD_EXTEDOCU"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@DES_FEC_CREACION">
                <xsl:attribute name="DES_FEC_CREACION">
                  <xsl:value-of select="@DES_FEC_CREACION"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@DES_TITULO">
                <xsl:attribute name="DES_TITULO">
                  <xsl:value-of select="@DES_TITULO"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@DES_NOMBREAL">
                <xsl:attribute name="DES_NOMBREAL">
                  <xsl:value-of select="@DES_NOMBREAL"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@COD_TIPODOCU">
                <xsl:attribute name="COD_TIPODOCU">
                  <xsl:value-of select="@COD_TIPODOCU"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@COD_STIPODOCU">
                <xsl:attribute name="COD_STIPODOCU">
                  <xsl:value-of select="@COD_STIPODOCU"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@COD_ESTA">
                <xsl:attribute name="COD_ESTA">
                  <xsl:value-of select="@COD_ESTA"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@DES_LOCAURI">
                <xsl:attribute name="DES_LOCAURI">
                  <xsl:value-of select="@DES_LOCAURI"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="@DES_PERSCREADOR">
                <xsl:attribute name="DES_PERSCREADOR">
                  <xsl:value-of select="@DES_PERSCREADOR"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="."/>
            </ns0:DOCUMENTO>
          </xsl:for-each>
        </ns0:DOCUMENTOS>
      </ns0:ACCIONSOLICITUD>
    </tns:catchDESESTIM>
  </xsl:template>
</xsl:stylesheet>
